home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / scheme / pcscheme / geneva / sources.exe / SOURCES / C / MYSIGNAL.H < prev    next >
Encoding:
Text File  |  1993-10-24  |  1.2 KB  |  44 lines

  1. /*  signal.h
  2.   
  3.     Definitions for ANSI defined signaling capability
  4.  
  5.     Copyright (c) 1988, 1991 by Borland International
  6.     All Rights Reserved.
  7.  
  8.     C++ definition of signal corrected to accept more than one arg. mv.
  9. */
  10.  
  11. #ifndef __SIGNAL_H
  12. #define __SIGNAL_H
  13.  
  14. #if !defined( __DEFS_H )
  15. #include <_defs.h>
  16. #endif
  17.  
  18. typedef int sig_atomic_t;   /* Atomic entity type (ANSI) */
  19. typedef void _Cdecl (_FARFUNC * _CatcherPTR)();
  20.  
  21. #define SIG_DFL ((_CatcherPTR)0)   /* Default action   */
  22. #define SIG_IGN ((_CatcherPTR)1)   /* Ignore action    */
  23. #define SIG_ERR ((_CatcherPTR)-1)  /* Error return     */
  24.  
  25. #define SIGABRT 22
  26. #define SIGFPE  8       /* Floating point trap  */
  27. #define SIGILL  4       /* Illegal instruction  */
  28. #define SIGINT  2
  29. #define SIGSEGV 11      /* Memory access violation */
  30. #define SIGTERM 15
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. int _Cdecl _FARFUNC raise(int __sig);
  36. #ifdef __cplusplus
  37. void _Cdecl (* _Cdecl _FARFUNC signal(int __sig, void _Cdecl (* _FARFUNC __func)(int, int, int *))) (int);
  38. }
  39. #else
  40. void _Cdecl _FARFUNC (* _Cdecl _FARFUNC signal(int __sig, void _Cdecl _FARFUNC (* func)())) (int);
  41. #endif
  42.  
  43. #endif
  44.